package com.lulu.controller;

import com.lulu.common.lang.Result;
import com.lulu.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试
 */
@RestController
public class TestController {

    @Autowired
    SysUserService userService;

    @GetMapping("/test")
    public Object test() {
        System.out.println("进入访问!!");
        return Result.succ(userService.list());
    }
}
